﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SmartFront.Toolkit.Core
{
    public static class DateTimeExtensionMethods
    {
        /// <summary>
        /// Converts from UTC DateTime to Local DateTime
        /// </summary>
        /// <param name="datetime"></param>
        /// <returns></returns>
        public static DateTime FromUTC(this DateTime datetime)
        {
            return DateTime.SpecifyKind(datetime, DateTimeKind.Utc).ToLocalTime();
        }
    }
}
